﻿<?xml version="1.0" encoding="GB2312"?>
<Body Name="SO2分析仪" ModifyTime="2012-12-01 10:10:00">
	<Hardware>
		<Net1>192.168.0.123:1234</Net1>
		<COM1>9600,8,N,1</COM1>
		<COM2>9600,8,N,1</COM2>
		<COM3>9600,8,N,1</COM3>
		<COM4>9600,8,N,1</COM4>
	</Hardware>
	<Software>
		<DataCollect>
			<!-- <Protocol Name="Modbus" Path="\HardDisk\DC_modbus.dll" Status="checked"> -->	
			<!-- <Protocol Name="Modbus" Path="D:\MyProjects\EA Project\CEP\src\debug\ModbusRTU.dll" Status="checked"> 	 -->  
			<Protocol Name="Modbus" Path="\硬盘\cep\ModbusRTU.dll" Status="checked"> 		  	
			</Protocol>
		</DataCollect>
		<DataConversion/>
		<DataSave>
			<Protocol Status="False" Name="AveragePer" Path="\Drivers\DS_Average.dll" Status="checked">
				<BeginTime>12:04</BeginTime>
				<Interval>1</Interval>
			</Protocol>
			<Protocol Status="False" Name="COD" Path="\硬盘\cep\CODDataSaveLogic.dll">
				<Para>10</Para>
				<Para>1</Para>
			</Protocol>
			<Protocol Status="checked" Name="NH3N" Path="\硬盘\cep\NH3NDataSaveLogic.dll">
				<Para>10</Para>
				<Para>1</Para>
			</Protocol>
		</DataSave>
		<UI/>
		<DataTrans>
			<!-- <Protocol Name="TransModbus" Path="\硬盘\cep\Trans_Modbus.dll" Status="checked">
				<Port>Com4</Port>
			</Protocol>
			 -->
			 <Protocol Name="TransModbusRTU" Path="\硬盘\cep\DataTransModbusRTU.dll" Status="checked">
				<Port>4</Port>
			</Protocol>
			<Protocol Name="TransModbusTCP" Path="\硬盘\cep\Trans_ModbusTCP.dll" Status="False">
				<Addr>192.168.0.123:1234</Addr>
			</Protocol>
		    <Protocol Name="TransHJT212" Path="\硬盘\cep\Trans_HJT212.dll" Status="False">
				<Addr>192.168.0.123:1234</Addr>
			</Protocol>
		</DataTrans>
		<CTRL>				
			<!-- <Protocol Name="CtrlNH3N" Path="D:\MyProjects\EA Project\CEP\src\debug\CtrlNH3N.dll" Status="checked">  -->
			<Protocol Name="CtrlNH3N" Path="\硬盘\cep\CtrlNH3N.dll" Status="checked"> 
			</Protocol>
		</CTRL>
		<SEQ>
			<Sequence Name="Init" 	Path="\硬盘\cep\SequenceFile\换液初始化流程.hex" 			BeginTime="" Interval=""/>
			<Sequence Name="Test" 	Path="\硬盘\cep\SequenceFile\检测流程模板.hex" 			BeginTime="00:00" Interval="240"/>
			<Sequence Name="Calib" 	Path="\硬盘\cep\SequenceFile\标定流程模板.hex" 			BeginTime="01:00" Interval="1440"/>
			<Sequence Name="ClearA" Path="\硬盘\cep\SequenceFile\清洗流程（用蒸馏水）.hex" 	BeginTime="" Interval=""/>
			<Sequence Name="ClearB" Path="\硬盘\cep\SequenceFile\清洗流程（用清洗剂）.hex" 	BeginTime="" Interval=""/>
		</SEQ>
	</Software>
	<Instrument>
		<!--变量类型：
		1.实时测量值、状态值（数采单元反复采集该值）
		2.采集值的修正值 (修正类型1的值，可能1个实时值存在多个修正值)
		3.经过修正后的采集值	(数据处理单元处理后的值，用于显示、保存、控制、外围通讯模块)
		4.可写变量 （用于下发指令）		
		-->
		<Device DevName="dev1" ProtocolName="Modbus" ConnectPort="COM1" Interval="100" TimeOut="200" Desc="设备1">
			<DataType1>
				<Var Name="var1" DataLength="4" Cmd="1,4,0,2"/>
				<Var Name="var2" DataLength="4" Cmd="1,4,2,2"/>
				<Var Name="var3" DataLength="4" Cmd="1,4,4,2"/>
				<Var Name="state_S001" DataLength="2" Cmd="1,4,10,1"/>
				<Var Name="state_S002" DataLength="2" Cmd="1,4,11,1"/>
				<Var Name="state_S003" DataLength="2" Cmd="1,4,12,1"/>
			</DataType1>
			<DataType2>
				<Var Name="var1_revise1" DataLength="4" Value="1.15"/>
				<Var Name="var1_revise2" DataLength="4" Value="0.79"/>
				<Var Name="var2_revise"  DataLength="4" Value="2.13"/>
			</DataType2>
			<DataType3>
				<Var Name="var1_out" Type="1" DataLength="4" Cmd="var1*var1_revise1 + var1_revise2" ChannelName="NameAA" ChannelUnit="X" Code="AA" DigitPos="4" IsSave="1" AlarmLow="-0.5" AlarmHigh="1.5" Desc="AA的测量值"/>
				<Var Name="var2_out" Type="1" DataLength="4" Cmd="var2+2.3+var2_revise" ChannelName="NameBB" ChannelUnit="Y" Code="BB" DigitPos="3" IsSave="1" AlarmLow="0.1" AlarmHigh="2" Desc="BB的测量值"/>
				<Var Name="var3_out" Type="1" DataLength="4" Cmd="var3" ChannelName="NameCC" ChannelUnit="Z" Code="CC" DigitPos="3" IsSave="1" AlarmLow="0.35" AlarmHigh="1.7" Desc="BB的测量值"/>
				<Var Name="S001_out" Type="2" DataLength="2" Cmd="state_S001" ChannelName="" ChannelUnit="" Code="" DigitPos="" IsSave="" AlarmLow="" AlarmHigh="" Desc="状态1的测量值"/>
				<Var Name="S002_out" Type="2" DataLength="2" Cmd="state_S002" ChannelName="" ChannelUnit="" Code="" DigitPos="" IsSave="" AlarmLow="" AlarmHigh="" Desc="状态2的测量值"/>
				<Var Name="S003_out" Type="2" DataLength="2" Cmd="state_S003" ChannelName="" ChannelUnit="" Code="" DigitPos="" IsSave="" AlarmLow="" AlarmHigh="" Desc="状态3的测量值"/>
			</DataType3>
			<DataType4>
				<Var Name="ctrl_C001" Cmd="1,15,41,3,6,1,0,1" Desc=""/>
				<Var Name="ctrl_C002" Cmd="1,16,42,2,4,123,444" Desc=""/>
			</DataType4>
		</Device>	

		<Device DevName="MultiPosValve" ProtocolName="Modbus" ConnectPort="COM1" Interval="100" TimeOut="200" Desc="多位阀">	
			<DataType4>
				<Var Name="sMultiPosValve_Port" Cmd="2,16,1,1,2,1" Desc=""/>				
			</DataType4>
		</Device>
		
		<Device DevName="SyringePump" ProtocolName="Modbus" ConnectPort="COM1" Interval="100" TimeOut="200" Desc="注射泵">	
			<DataType4>
				<Var Name="sSyringePump_Valve2Carrier" 	Cmd="3,16,1,1,2,1" Desc=""/>	
				<Var Name="sSyringePump_Valve2Coil" 	Cmd="3,16,2,1,2,1" Desc=""/>	
				<Var Name="sSyringePump_LiquidSpeed" 	Cmd="3,16,3,1,2,1" Desc=""/>	
				<Var Name="sSyringePump_DispenseVolum" 	Cmd="3,16,4,1,2,1" Desc=""/>	
				<Var Name="sSyringePump_SinkVolum" 		Cmd="3,16,5,1,2,1" Desc=""/>	
				<Var Name="sSyringePump_SinkFull" 		Cmd="3,16,6,1,2,1" Desc=""/>	
				<Var Name="sSyringePump_Evacuation" 	Cmd="3,16,7,1,2,1" Desc=""/>	
				<Var Name="sSyringePump_GoAbsPosition" 	Cmd="3,16,8,1,2,1" Desc=""/>	
			</DataType4>
		</Device>
		
		<Device DevName="DigestValve" ProtocolName="Modbus" ConnectPort="COM1" Interval="100" TimeOut="200" Desc="消解阀">	
			<DataType4>
				<Var Name="sDigestValve1" Cmd="4,16,1,1,2,1" Desc=""/>	
				<Var Name="sDigestValve2" Cmd="4,16,2,1,2,1" Desc=""/>	
				<Var Name="sDigestValve3" Cmd="4,16,3,1,2,1" Desc=""/>	
				<Var Name="sDigestValve4" Cmd="4,16,4,1,2,1" Desc=""/>	
			</DataType4>
		</Device>
		
		<Device DevName="ConstTemp" ProtocolName="Modbus" ConnectPort="COM1" Interval="100" TimeOut="200" Desc="恒温模块">	
			<DataType4>
				<Var Name="sConstTemp_Degree" 	Cmd="5,16,1,1,2,1" Desc=""/>	
				<Var Name="sConstTemp" 			Cmd="5,16,2,1,2,1" Desc=""/>	
			</DataType4>
		</Device>
		
		<Device DevName="SwitchGroup" ProtocolName="Modbus" ConnectPort="COM1" Interval="100" TimeOut="200" Desc="开关组">	
			<DataType4>
				<Var Name="sCooler" 	Cmd="6,16,1,1,2,1" Desc=""/>	
				<Var Name="sUvLed" 		Cmd="6,16,2,1,2,1" Desc=""/>	
				<Var Name="sAuxPump" 	Cmd="6,16,3,1,2,1" Desc=""/>	
				<Var Name="sAuxValve1" 	Cmd="6,16,4,1,2,1" Desc=""/>	
				<Var Name="sAuxValve2" 	Cmd="6,16,5,1,2,1" Desc=""/>	
				<Var Name="sAuxSw1" 	Cmd="6,16,6,1,2,1" Desc=""/>	
				<Var Name="sAuxSw2" 	Cmd="6,16,7,1,2,1" Desc=""/>	
				<Var Name="sAuxSw3" 	Cmd="6,16,8,1,2,1" Desc=""/>	
				<Var Name="sAuxSw4" 	Cmd="6,16,9,1,2,1" Desc=""/>	
				<Var Name="Stirrer" 	Cmd="6,16,10,1,2,1" Desc=""/>	
			</DataType4>
		</Device>
		
	</Instrument>
</Body>
